package Meituan;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @Author: leiwenkang02
 * @Date: 2020/3/25 6:41 下午
 */
public class Test30 {
    public static void main(String[] args) {
        System.out.println(isNum("1585132977041"));
    }

    public static boolean isNum(String str) {
        Pattern pattern = Pattern.compile("[0-9]*");
        Matcher isNum = pattern.matcher(str);
        return isNum.matches();
    }
}
